import Vue from 'vue'
import VueRouter from 'vue-router'
// import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  // {
  //   path: '/',
  //   name: 'home',
  //   component: () => import('@/views/HomeView.vue'),
  // },
  // {
  //   path: '/purview',
  //   name: 'purview',
  //   component: () => import('@/views/purview/index.vue'),
  // },
  {
    path: '/hsindex',
    name: 'hs',
    component: () => import('@/views/prevention/hs-index.vue'),
  },
  {
    path: '/text',
    name: 'text',
    component: () => import('@/views/text.vue'),
  },
  {
    path: '/',
    name: 'home',
    component: () => import('@/views/prevention/hs-index.vue'),
    // component: () => import('@/views/login/index.vue'), // 登录
  },
  {
    path: '/sbyzt2',
    name: 'sbyzt2',
    component: () => import('@/views/prevention/sbyzt2.vue'),
    // component: () => import('@/views/login/index.vue'), // 登录
  },
  {
    path: '/sbyzt',
    name: 'sbyzt',
    component: () => import('@/views/prevention/sbyzt.vue'),
  },
  {
    path: '/enterprise',
    name: 'enterprise',
    component: () => import('@/views/enterprise/index.vue'),
  },
  {
    path: '/gov',
    name: 'gov',
    component: () => import('@/views/gov/index.vue'),
  },
  {
    path: '/project',
    name: 'project',
    component: () => import('@/views/project/index.vue'),
  },
  {
    path: '/yxgj-map',
    name: 'yxgj-map',
    component: () => import('@/views/yxgj-map/index.vue'),
  },
  {
    path: '/yxgj-map/trajectory-map',
    name: 'trajectory-map',
    component: () => import('@/views/yxgj-map/trajectory-map.vue'),
  },
  {
    path: '/food-safety',
    name: 'food-safety',
    component: () => import('@/views/food-safety/index.vue'),
  },
  {
    path: '/wt-tourism',
    name: 'wt-tourism',
    component: () => import('@/views/wt-tourism/index.vue'),
  },
  {
    path: '/approval',
    name: 'approval',
    component: () => import('@/views/approval/index.vue'),
  },
  {
    path: '/training',
    name: 'training',
    component: () => import('@/views/training/index.vue'),
  },
  {
    path: '/health',
    name: 'health',
    component: () => import('@/views/health/index.vue'),
  },
  {
    path: '/dangerous',
    name: 'dangerous',
    component: () => import('@/views/dangerous/index.vue'),
  },
  // {
  //   path: '/dashboard',
  //   name: 'dashboard',
  //   component: () => import('@/views/dashboard/index.vue'),
  // },
  {
    path: '/traffic',
    name: 'traffic',
    component: () => import('@/views/traffic/index.vue'),
  },
  {
    path: '/hr',
    name: 'hr',
    component: () => import('@/views/hr/index.vue'),
  },
  {
    path: '/safe-production',
    name: 'safe-production',
    component: () => import('@/views/safe-production/index.vue'),
  },
  {
    path: '/colliery',
    name: 'colliery',
    component: () => import('@/views/colliery/index.vue'),
  },
  {
    path: '/wisdom',
    name: 'wisdom',
    component: () => import('@/views/wisdom/index.vue'),
  },
  {
    path: '/school',
    name: 'school',
    component: () => import('@/views/school/index.vue'),
  },
]

const router = new VueRouter({
  routes,
})

export default router
